<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>详情</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="__LAYUI__/css/layui.css" media="all">
    <link rel="stylesheet" href="__STATIC__/plugs/font-awesome/css/font-awesome.min.css" media="all">
</head>
<body>
<div class="layui-container" style="width:90%;padding:15px;">
    <form class="layui-form layui-clear" action="{:url('duty/event/detail',array('eventId'=>$info.id))}" method="post" id="unitForm">

        <div class="layui-form-item">
            <label class="layui-form-label">事件名称</label>
            <div class="layui-input-block">
                <input class="layui-input demand" name="title" type="text" value="{$info.title}" disabled />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">开始时间</label>
            <div class="layui-input-block">
                <input class="layui-input demand" name="startTime" data-set="name" type="text" value="{$info.startTime|date='Y-m-d h:i:s',###}" disabled />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">结束时间</label>
            <div class="layui-input-block">
                <input class="layui-input demand" name="endTime" data-set="name" type="text" value="{$info.endTime}" disabled />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">事件类型</label>
            <div class="layui-input-block">
                <select name="eventTypeId" disabled>
                    <option></option>
                    {volist name="type" id="vo"}
                    <option value="{$key}" {if $info.eventTypeId == $key}selected{/if}>{$vo}</option>
                    {/volist}
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">接报人</label>
            <div class="layui-input-block">
                <select name="receiveId" disabled>
                    <option></option>
                    {volist name="userList" id="vo"}
                    <option value="{$key}" {if $info.receiveId == $key}selected{/if}>{$vo}</option>
                    {/volist}
                </select>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">事发企业</label>
            <div class="layui-input-block">
                <select name="enterpriseId" disabled>
                    <option></option>
                    {volist name="enterpriseList" id="item"}
                    <option value="{$key}" {if $info.enterpriseId == $key}selected{/if}>{$item}</option>
                    {/volist}
                </select>
            </div>
        </div>


        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">灾情级别</label>
            <div class="layui-input-block">
                <select name="status">
                    <option></option>
                    {volist name="status" id="item"}
                    <option value="{$key}" {if $info.status == $item}selected{/if}>{$item}</option>
                    {/volist}
                </select>
            </div>
        </div>

        <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">威胁范围</label>
        <div class="layui-input-block">
            <textarea class="layui-textarea" name="threatenRange" data-set="positionDesc">{$info.threatenRange}</textarea>
        </div>
        </div>

        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">详细信息</label>
            <div class="layui-input-block">
                <textarea class="layui-textarea" name="detail" data-set="detail" >{$info.detail}</textarea>
            </div>
        </div>

        <input type="hidden" name="id" value="{$info.id}">
        <input type="hidden" value="1" name="eventType">
        <div class="layui-inline">
            <label class="layui-form-label">实景图&nbsp;<i class="layui-icon arrow">　</i></label>
            <div class="layui-input-inline">
                <button type="button" class="layui-btn" id="iconImg" data-url="{:url('admin/api.upload/upload')}">上传图片</button>
            </div>
            <div class="layui-inline">
                <div class="layui-input-inline">
                    {if $info.pathInfo}
                    <img src="__PUBLIC__/{$info.pathInfo}" class="layui-upload-img" id="iconImgSample" style="width:100px;height:100px;">
                    {else}


                    <img src="__STATIC__/img/duty/nopic.png" class="layui-upload-img" id="iconImgSample" style="width:100px;height:100px;">
                    <input class="layui-hide" type="text" name="pathInfo">
                    {/if}
                </div>

            </div>
        </div>

        <div class="layui-form-item">

            <div class="layui-inline">
                <div class="layui-input-block">
                    <button class="layui-btn" id="save" lay-submit lay-filter="save">保 存 </button>
                </div>
            </div>
            <div class="layui-inline">
                <div class="layui-input-block">
                    <button class="layui-btn layui-btn-normal" type="reset">重 置</button>
                </div>
            </div>
        </div>
</form>
</div>



<script type="text/javascript" src="__LAYUI__/layui.js"></script>
<script type="text/javascript" src="__JS__/duty/detail.js"></script>


</body>
</html>

